to insert characters when necessary."
(interactive "*p")
(let ((char (read-quoted-char)))
- (while (> arg 0)
- (insert char)
- (setq arg (1- arg)))))
+ (insert-char char arg)))
(defun delete-indentation (&optional arg)
"Join this line to previous and fix up whitespace at join.
;; the region's text in the kill ring, anyway.
(buffer-read-only
(copy-region-as-kill beg end)
- (ding))
+ ;; This should always barf, and give us the correct error.
+ (barf-if-buffer-read-only))
;; In certain cases, we can arrange for the undo list and the kill
;; ring to share the same string object. This code does that.
(setq start (point-min) end (point-max)))
(insert-buffer-substring buffer start end)
(setq newmark (point)))
- (push-mark newmark)))
+ (push-mark newmark))
+ nil)
(defun append-to-buffer (buffer start end)
"Append to specified buffer the text of the region.